package com.rocbrid.product.service.impl;
import java.math.BigDecimal;

import com.rocbrid.product.bean.Product;
import com.rocbrid.product.service.ProductService;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl  implements ProductService {
    @Override
    public Product getProductByid(Long prductId) {
        Product product = new Product();
        product.setId(prductId);
        product.setPrice(new BigDecimal("99"));
        product.setProdectName("苹果-"+prductId);
        product.setNum(2);

        return product;
    }
}
